// JavaScript Document


function Vina_style(){
urlroot = 'http://vision1.googlecode.com/svn/js/bar/';
html +='<link rel="stylesheet" href="http://ghs.vinabrand.com/themes/travel.css" type="text/css" />';
html +='<link rel="stylesheet" href="'+urlroot+'css/popup.css" type="text/css" />';
html +='<link rel="stylesheet" href="'+urlroot+'css/style.css" type="text/css" />';
html +='<link rel="stylesheet" href="'+urlroot+'css/'+color+'.css" type="text/css" />';
html +='<link rel="stylesheet" href="'+urlroot+'menu/'+position+'.css" type="text/css" />';
	}

function Vinabrand_toolbar(){
html='';
Vina_style();
html +='<div style="width:100%; height:28px; margin:0; padding:0;">'
+ '<div id="socialbar" class='+position+' style="width:99%; position:fixed; '+position+':-5px; left:8px; padding:0;">'
+ '<center>'
+ '<div class="leftbar">'
+ '<div class="rightbar">'
+ '<div class="mainbar">'
+ '<div class="contentbar" style="margin:0 auto; padding:0;">'
+ '<ul id="ul-bar" style="width:1020px; max-height:24px; display:block;  margin:0 auto -3px auto; "><nobr>';
Vina_logo();

Vina_share();
Vina_network();
Vina_extra();
//Vina_search();
html +='</nobr></ul></div></div></div></div></center></div></div>';
document.write(html);
}

function Vina_logo(){
html +='<li class="vina-ico">'
+ '<a href="http://vinabrand.com" target="_blank"><img src="'+urlroot+'images/favicon.png" width="23" height="23" border="0" style="margin-top:3px" /></a>'
+ '</li>';
}



function Vina_tool(){
html +='<li class="tool">Tools</li>';
}
function Vina_network(){
html +='<li><ul id="menu">'
+ '<li><a class="sub" href="#network"><b>Follow Us</b></a>'
+ '<ul class="sub1">'
			+ '<li><a href="http://plus.google.com" target="_blank">Google +</a></li>'
			+ '<li><a href="http://Facebook.com/vinabrand" target="_blank">Facebook</a></li>'
			+ '<li><a href="http://twillter.com/vinabrand" target="_blank">Twillter</a></li>'
			+ '<li><a href="http://Myspace.com/vinabrand" target="_blank">Myspace</a></li>'
			+ '<li><a href="http://linkedin.com/vinabrand" target="_blank">Linkedin</a></li>'
			+ '<li><a href="http://Me.yahoo.com/vinabrand" target="_blank">Yahoo Buzz</a></li>'
			+ '<li><a href="http://Youtube.com/users/vinabrand" target="_blank">Youtube</a></li>'			
+ '</ul>'
+ '</li>'
+ '</ul></li>';
}

 (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();

function Vina_share(){
html +='<li style="display:block;"><nobr>'; 
gplus ='<g:plusone annotation="inline"></g:plusone>';
ym = '<a class="sub" href="ymsgr:sendim?thuonggiaviet" alt="Send from webbloger..."><img src="http://opi.yahoo.com/online?u=thuonggiaviet&m=g&t=1" alt="Y ! M" /></a>';
html += gplus+ym;
html += '</nobr></li>';
}


function Vina_extra(){
html +='<li style="margin-left:20px;"><ul id="menu"><li><a class="sub" href="http://vinabrand.com"><b>More info..</b></a>'
+ '<ul class="sub1">'
			+ '<li><a href="http://vinabrand.com/travel">Travel guide</a></li>'
			+ '<li><a href="http://vinabrand.com/go">Discoveries</a></li>'
			+ '<li><a href="http://vinabrand.com/news">News Express</a></li>'
			+ '<li><a href="http://vinabrand.com/Deal">Deals</a></li>'
			+ '<li><a href="http://vinabrand.com/reviews">Reviews</a></li>'
			+ '<li><a href="http://vinabrand.com/Properties">Properties</a></li>'
			+ '<li><a href="http://vinabrand.com/cars">Car for rent</a></li>'
			+ '<li><a href="http://fun.vinabrand.com">Funny & Lucky</a></li>'
+ '</ul>'
+ '</li>'
+ '</ul>'
+ '</li>';
}

function Vina_search(){
html +='<li style="display: width:220px;z-index:9999">';
html +='<form action="http://go.vinabrand.com/" id="cse-search-box">'
    + '<nobr>'
    + '<input type="hidden" name="cx" value="partner-pub-5994860997812212:7918188334" />'
    +'<input type="hidden" name="cof" value="FORID:10" />'
    +'<input type="hidden" name="ie" value="UTF-8" />'
    +'<input type="text" name="q" size="15" style="width:200px" />'
    +'<input type="submit" name="sa" value="go" style="width:60px" />'
  +'</nobr>'
+'</form>';
html += '</li>';

}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2217529-1']);
  _gaq.push(['_setDomainName', 'vinabrand.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

